# 将一行一个文档的语料进行切词

import sys
from ..utils import jieba_batch_cut


def run():
    txt_fp = sys.argv[2]
    save_fp = sys.argv[3]
    try:
        each_count = int(sys.argv[4])
    except IndexError:
        each_count = 100000
    jieba_batch_cut(txt_fp, save_fp, each_count)
